package com.aaa.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
 * <p>
 * 学科表
 * </p>
 *
 * @author wang
 * @since 2020-07-29
 */
@TableName("tb_course")
public class TbCourse extends Model<TbCourse> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程主键
     */
    @TableId(value = "tb_course_id", type = IdType.AUTO)
    private Integer tbCourseId;
    /**
     * 课程名称
     */
    @TableField("tb_course_name")
    private String tbCourseName;
    /**
     * 课程类型
     */
    @TableField("tb_course_type")
    private String tbCourseType;

    /**
     * 课程类型
     */
    @TableField("status")
    private Integer status;
    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 更新时间
     */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTbCourseId() {
        return tbCourseId;
    }

    public void setTbCourseId(Integer tbCourseId) {
        this.tbCourseId = tbCourseId;
    }

    public String getTbCourseName() {
        return tbCourseName;
    }

    public void setTbCourseName(String tbCourseName) {
        this.tbCourseName = tbCourseName;
    }

    public String getTbCourseType() {
        return tbCourseType;
    }

    public void setTbCourseType(String tbCourseType) {
        this.tbCourseType = tbCourseType;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.tbCourseId;
    }

    @Override
    public String toString() {
        return "TbCourse{" +
        "tbCourseId=" + tbCourseId +
        ", tbCourseName=" + tbCourseName +
        ", tbCourseType=" + tbCourseType +
                ", status=" + status +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        ", updateBy=" + updateBy +
        ", updateTime=" + updateTime +
        "}";
    }
}
